function findPosX(obj) { 
var curleft = 0; 
if (obj.offsetParent) { 
while (obj.offsetParent) { 
curleft += obj.offsetLeft - obj.scrollLeft; 
obj = obj.offsetParent; 
} 
} else if (obj.x) { 
curleft += obj.x; 
} 
return curleft; 
} 
function findPosY(obj) { 
var curtop = 0; 
if (obj.offsetParent) { 
while (obj.offsetParent) { 
curtop += obj.offsetTop - obj.scrollTop; 
obj = obj.offsetParent; 
} 
} else if (obj.y) { 
curtop += obj.y; 
} 
return curtop; 
} 
function showHelp(id) {  
var text = document.getElementById("help" + id); 
var icon = document.getElementById("img" + id); 
if (text.style.visibility == "visible") { 
return; 
} 
x = findPosX(icon) + 8; 
y = findPosY(icon) + 8; 
var textHeight = text.scrollHeight; 
var textWidth = text.scrollWidth; 
var scrollSize = 20; 
var scrollTop = 0; 
var scrollLeft = 0; 
var clientHeight = 0; 
var clientWidth = 0; 
if (document.documentElement && (document.documentElement.scrollTop || document.documentElement.clientHeight)) { 
scrollTop = document.documentElement.scrollTop; 
scrollLeft = document.documentElement.scrollLeft; 
clientHeight = document.documentElement.clientHeight; 
clientWidth = document.documentElement.clientWidth; 
} else if (document.body) { 
scrollTop = document.body.scrollTop; 
scrollLeft = document.body.scrollLeft; 
clientHeight = document.body.clientHeight; 
clientWidth = document.body.clientWidth; 
} 
if ((y + textHeight) > (clientHeight + scrollTop)) { 
y = y - textHeight; 
} 
if (y < scrollTop) { 
y = (clientHeight + scrollTop) - (textHeight + scrollSize); 
} 
if (y < scrollTop) { 
y = scrollTop; 
} 
if ((x + textWidth) > (clientWidth + scrollLeft)) { 
x = x - textWidth; 
}   
if (x < scrollLeft) { 
x = (clientWidth + scrollLeft) - (textWidth + scrollSize); 
} 
if (x < scrollLeft) { 
x = scrollLeft; 
} 
text.style.left = x + "px"; 
text.style.top =  y + "px"; 
text.style.visibility = "visible"; 
} 
function hideHelp(id) { 
var text = document.getElementById("help" + id); 
text.style.visibility = "hidden"; 
text.style.left = "0px"; 
text.style.top =  "0px"; 
} 
